package com.itheima.d2_homework.timu5;

public class Test {
    public static void main(String[] args) {


        Sockets tv = new TV();
        tv.tongDian();

        TV tv2 = (TV) tv;
        tv2.open();
        tv2.close();

        Sockets sockets = new AirConditioning();
        AirConditioning a = (AirConditioning) sockets;

        AirConditioning airConditioning = new AirConditioning();
        airConditioning.tongDian();
        airConditioning.open();
        airConditioning.close();


    }
}
